import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import pinia from './stores';
// 引入 svg插件
import 'virtual:svg-icons-register';
// 引入 sass 全局样式
import '@/styles/index.scss';

import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(router);
app.use(pinia);
app.mount('#app');
